Skip to content

fix(editor): stop the query editor stealing focus on tab open; add VoiceOver labels (#1490)#1507

Merged
datlechin merged 2 commits into
mainfrom
a11y/query-editor
May 30, 2026
Merged

fix(editor): stop the query editor stealing focus on tab open; add VoiceOver labels (#1490)#1507
datlechin merged 2 commits into
mainfrom
a11y/query-editor

Conversation

@datlechin
Copy link
Copy Markdown
Member

Part of #1490 (keyboard, focus, accessibility). Query editor surface.

Focus

  • The editor's deferred auto-focus on tab open now only fires when the window has no other first responder (firstResponder == nil or the window itself), so opening a query tab while the sidebar or another control is focused no longer yanks focus into the editor. Builds on the isDestroyed guard from fix(datagrid): move focus to grid on explicit table open (#1490) #1497.

VoiceOver

  • The SourceEditor gets .accessibilityLabel("SQL query editor").
  • The icon-only Clear and Format toolbar buttons get accessibility labels (Execute and Explain already carry text labels).

Native APIs only. Several other gaps from the audit are already merged (filter-apply focus return in #1492) or are larger follow-ups (Tab-to-exit the editor via the key view loop, the first-responder polling refactor, the split key-view-loop wiring).

Lint clean, style gate clean. Focus/VoiceOver verified manually.

@datlechin datlechin merged commit 51588dc into main May 30, 2026
4 checks passed
@datlechin datlechin deleted the a11y/query-editor branch May 30, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant